<%@ page import="org.biojava.services.das.dao.Role" %>
<%@ page import="org.biojava.services.das.dao.RegistryUser" %>
<%@ page import="org.biojava.services.das.registry.UserManager" %>
<body>

    <div id="upbg"></div>

    <div id="outer">

        <div id="header">
            <div id="headercontent">
                <h1>The DAS Registry<sup>V4.2.3 16 04 2012</sup></h1>
                <h2>The Biological Distributed Annotation System Registry</h2>
            </div>
        </div>
        <!--	<form id="form1" method="get" action="NavigateSources.jsp">-->
        <!--<div id="search">-->
        <!--<input type="text" id="keywords" name="keywords"></input>-->
        <!--<a type="submit" id="submit" >Search</a>-->
        <!--</div>-->
        <!--</form>-->

        <form method="get" action="NavigateSources.jsp">
            <div id="search">
                <input type="text" class="text" maxlength="64" name="keywords" id="keywords" />
                <input type="submit" class="submit" value="Search" />
                <a href="http://www.ebi.ac.uk/inc/help/search_help.html#examplesimple">Help</a>
            </div>
        </form>
        <div id="headerpic"></div>
        <p><a class="imageCredit" href="http://www.freedigitalphotos.net/images/view_photog.php?photogid=659">Image: Salvatore Vuono / FreeDigitalPhotos.net</a></p>

        <div id="menu">
            <!-- HINT: Set the class of any menu link below to "active" to make it appear active -->
            <!--		<ul>-->
            <!--			<li><a href="#">Home</a></li>-->
            <!--			<li><a href="#" class="active">News</a></li>-->
            <!--			<li><a href="#">Blog</a></li>-->
            <!--			<li><a href="#">Gallery</a></li>-->
            <!--			<li><a href="#">About</a></li>-->
            <!--			<li><a href="#">Contact</a></li>-->
            <!--		</ul>-->

            <ul>	<%
                if (session.getAttribute("email") == null) {

                %> <li><a href="login.jsp">Login</li>  <% } else {

         if (request.getParameter("logout") != null) {
             session.invalidate();
                %> logged out  <li><a href="login.jsp">login <img src="img/kuser.png"/></a></li>  <%
    } else {
                        %> 

                <div id="email"><%= session.getAttribute("email")%></div>

                <li><a href="listServices.jsp?cmd=showmine" 	
                       onMouseover="dropdownmenu(this, event, menu1, '90px')" 
                       onMouseout="delayhidemenu()"><img src="img/krfb.png"/> Sources</a></li> 
                <li><a href="listProjects.jsp?cmd=showmine" 	
                       onMouseover="dropdownmenu(this, event, menu2, '90px')" 
                       onMouseout="delayhidemenu()"><img src="img/thumbnail.png"/> Projects</a></li> 
                <li><a href="loginSettings.jsp"><img src="img/package_development.png"/> Settings</a> </li>


                <% if (isAdmin) {
                %><li><a href="memorytest.jsp"
                       onMouseover="dropdownmenu(this, event, adminmenu, '90px')" 
                       onMouseout="delayhidemenu()"><img src="img/krfb.png"/> Admin</a></li>  <%                    }

                        %><li><img src="img/identity.png"/> <a href="login.jsp?logout=true">Logout</a></li>	

                <%
                    }
       //
                %>

                <%}%>
                <li><a href="index.jsp">Home</a></li>
                <li><a href="listSources.jsp">List Sources</a></li>
                <li><a href="listServers.jsp">List Servers</a></li>
                <!--<li><a href="NavigateSources.jsp">List Entries</a></li>-->
                <li><a href="listProjects.jsp">List Projects</a></li>
                <li><a href="validateServer.jsp">Validate</a></li>
                <li><a href="registerService.jsp">Register new</a></li>
                <li><a href="statistics.jsp">Statistics</a></li>
                <li><a href="documentation.jsp">Documentation</a></li>
                <!--<li><a href="spec_1.6E.jsp">DAS 1.6E</a></li>-->
                <!--<li><a href="spec_1.53E.jsp">DAS 1.53E</a></li>-->
                <li><a href="history.jsp">History</a> </li>
                <li><a href="ArchivedSources.htm">Archived</a></li>
            </ul>

        </div>

        <!--<form method="post" action="listServices.jsp" name="count_form">	-->
        <!-- <input type="text" name="keyword" size="10" value=""/>-->
        <!--<input type="hidden" name="cmd" value="keyword"/>-->
        <!--  <input type="submit" value="search"/> -->
        <!--</form>-->
        <!--<form method="post" action="listServices.jsp" name="count_form">-->
        <!--<input type="text" name="keywordForTypes" size="10" value=""/> -->
        <!--   <input type="hidden" name="cmd" value="keywordForTypes"/>-->
        <!--  <input type="submit" value="search types only">-->
        <!---->
        <!--</form>-->

        <div id="menubottom"></div>


        <div id="content">
